<!doctype html>
<p>Test passes if the input element is truncated beyond 10000px on Mac.</p>
<form>
  <input style="width: 10001px;">
</form>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
    window.scrollTo(10001, 0);
}, true);
</script>
